import React, { Component } from 'react'
import {Route, Switch, Redirect} from 'react-router-dom'
import FileList from './children/FileList/FileList'
import AdminFileList from './children/AdminFileList/AdminFileList'
export default class File extends Component {

    render() {
        return (
            <Switch>
                <Route path='/file/fileList' component={FileList} />
                <Route path='/file/adminFileList' component={AdminFileList} />
                <Redirect to='/file/fileList' />
            </Switch>
        )
    }
}
